<?php
/**
 * Created by PhpStorm.
 * User: tudo
 * Date: 2016/2/23
 * Time: 22:49
 * ------------------------------------\
 * 验证码生产控制器
 */
namespace Home\Controller;
use Think\Controller;

class VerifyController extends Controller
{
    private $vModel;
    public function __construct() {
        $this->vModel = new \Think\Verify(C("VERFIY"));
    }

    public function index(){
        $this->vModel->entry();
    }

    //验证验证码
    public function verify($code="xx",$id=''){
        return $this->vModel->check($code, $id);
    }
}